package com.market.mapper;

import com.market.bean.MarketRegion;
import com.market.bean.MarketRegionExample;
import com.market.bean.vo.admin.AdminRegionListCitieVo;
import com.market.bean.vo.admin.AdminRegionListProvinceVo;
import org.apache.ibatis.annotations.Param;

import java.util.LinkedList;
import java.util.List;

public interface MarketRegionMapper {
    long countByExample(MarketRegionExample example);

    int deleteByExample(MarketRegionExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MarketRegion record);

    int insertSelective(MarketRegion record);

    List<MarketRegion> selectByExample(MarketRegionExample example);

    MarketRegion selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MarketRegion record, @Param("example") MarketRegionExample example);

    int updateByExample(@Param("record") MarketRegion record, @Param("example") MarketRegionExample example);

    int updateByPrimaryKeySelective(MarketRegion record);

    int updateByPrimaryKey(MarketRegion record);

    LinkedList<AdminRegionListCitieVo> selectCityWithDistrict();

    LinkedList<AdminRegionListProvinceVo> selectProvinWithCity();
}
